Package-level declarations

Here reside all the Public APIs of Moloco SDK

Types

Link copied to clipboard

Represents the types of ad formats.

Link copied to clipboard
interface AdLoad

Represents an interface for ad loading events

Link copied to clipboard
interface AdShowListener

Ad display event callback interface

Link copied to clipboard
abstract class Banner(context: Context) : FrameLayout, AdLoad, Destroyable

A banner ad implementation which extends the Android FrameLayout and implements AdLoad and Destroyable interfaces.

Link copied to clipboard

Callback interface for Banner ad display events

Link copied to clipboard
typealias CreateBannerCallback = (banner: Banner?, error: MolocoAdError.AdCreateError?) -> Unit
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface Destroyable

Wherever this interface is used, call destroy function once the instance is no longer needed in order to release resources and avoid memory leaks.

Link copied to clipboard

Interface for full-screen ads that can be shown to users.

Link copied to clipboard

Enum class representing the possible Moloco initialization status values.

Link copied to clipboard

Interface for interstitial ads, a type of full-screen ad.

Link copied to clipboard

Callback interface for InterstitialAd display events

Link copied to clipboard
class MediationInfo(val name: String)

Information about mediation partner Moloco SDK is used by.

Link copied to clipboard
object Moloco
Link copied to clipboard
data class MolocoAd(val networkName: String, val adUnitId: String, val revenue: Float? = null)

Data class representing a Moloco ad.

Link copied to clipboard
data class MolocoAdError(val networkName: String, val adUnitId: String, val errorType: MolocoAdError.ErrorType, val description: String = errorType.description)

Data class representing a Moloco ad error that is visible for the PUBLIC API.

Link copied to clipboard

Moloco bid token listener for Moloco.getBidToken call

Link copied to clipboard

Interface for listening to Moloco initialization status updates.

Link copied to clipboard
data class MolocoInitStatus(val initialization: Initialization, val description: String)

Data class representing the Moloco initialization status.

Link copied to clipboard

Interface representing a native ad for mediation.

Link copied to clipboard

Interface for rewarded interstitial ads, a type of full-screen ad that provides a reward to the user after they interact with it.

Link copied to clipboard

Functions

Link copied to clipboard
fun createAdInfo(adUnitId: String, revenue: Float? = null): MolocoAd

Creates a new MolocoAd object with MolocoAd.networkName set to "Moloco".